#pragma once

BOOL libOpenCOM(DWORD dwNum, DWORD dwRate, DWORD dwDataBit, DWORD dwStopBit, DWORD dwCheckBit, DWORD dwStreamBit);
void libOpenCOM();
BOOL libWriteCOM(LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten);
BOOL libReadCOM(LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead);